﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Runtime.Serialization;
namespace Server_NhaSach.DataTransferObject
{
    [DataContract]
    public class PhieuTraHangNCCDTO
    {
        #region "Khai báo các biến"
        private string _maTHNCC;
        private string _maNV;
        private string _maKho;
        private string _maNCC;
        private string _maSoThue;        
        private string _nguoiTra;
        private DateTime _ngayTra;
        private string _chungTuTra;
        private string _ghiChuTH;
        private double _tongThanhTien;        
        #endregion

        #region "Khai báo các thuộc tính"
        [DataMember]
        public string MaTHNCC
        {
            get { return _maTHNCC; }
            set { _maTHNCC = value; }
        }
        [DataMember]
        public string MaNV
        {
            get { return _maNV; }
            set { _maNV = value; }
        }
        [DataMember]
        public string MaKho
        {
            get { return _maKho; }
            set { _maKho = value; }
        }
        [DataMember]
        public string MaNCC
        {
            get { return _maNCC; }
            set { _maNCC = value; }
        }
        [DataMember]
        public string MaSoThue
        {
            get { return _maSoThue; }
            set { _maSoThue = value; }
        }
        [DataMember]
        public DateTime NgayTra
        {
            get { return _ngayTra; }
            set { _ngayTra = value; }
        }
        [DataMember]
        public string NguoiTra
        {
            get { return _nguoiTra; }
            set { _nguoiTra = value; }
        }
        [DataMember]
        public string ChungTuTra
        {
            get { return _chungTuTra; }
            set { _chungTuTra = value; }
        }
        [DataMember]
        public string GhiChuTH
        {
            get { return _ghiChuTH; }
            set { _ghiChuTH = value; }
        }
        [DataMember]
        public double TongThanhTien
        {
            get { return _tongThanhTien; }
            set { _tongThanhTien = value; }
        }     
        #endregion
     
        #region "Khai báo các contructor"
        public PhieuTraHangNCCDTO() { }
        public PhieuTraHangNCCDTO(string maTHNCC,  string maNV, string maKho, string maNCC, string maSoThue, DateTime ngayTra, string nguoiTra, string chungTuTra, string ghiChuTH, double tongThanhTien)
        {
            this.MaTHNCC = maTHNCC;
            this.MaNV = maNV;            
            this.MaKho = maKho;
            this.MaNCC = maNCC;
            this.MaSoThue = maSoThue;
            this.NgayTra = ngayTra;
            this.NguoiTra = nguoiTra;
            this.ChungTuTra = chungTuTra;
            this.GhiChuTH = ghiChuTH;
            this.TongThanhTien = tongThanhTien;            
        }
        public PhieuTraHangNCCDTO(PhieuTraHangNCCDTO PhieuTraHangNCC) 
        {
            this.MaTHNCC = PhieuTraHangNCC.MaTHNCC;
            this.MaNV = PhieuTraHangNCC.MaNV;
            this.MaKho = PhieuTraHangNCC.MaKho;
            this.MaNCC = PhieuTraHangNCC.MaNCC;
            this.MaSoThue = PhieuTraHangNCC.MaSoThue;
            this.NgayTra = PhieuTraHangNCC.NgayTra;
            this.NguoiTra = PhieuTraHangNCC.NguoiTra;
            this.ChungTuTra = PhieuTraHangNCC.ChungTuTra;
            this.GhiChuTH = PhieuTraHangNCC.GhiChuTH;
            this.TongThanhTien = PhieuTraHangNCC.TongThanhTien;            
        }
        #endregion
    }
}